.btn {
    color: #fff;
    background: hsl(306, 40%, 25%);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: none;
}

.btn:hover {
    background: hsl(306, 40%, 35%);
}

.btn:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}

.btn > a:visited,
.btn > a:link {
    color: #fff;
    text-decoration: none;
}

.btn > form {
    margin: unset;
}

.btn > form > input[type="submit"] {
    background-color: unset;
    border: unset;
    color: unset;
    font-size: unset;
    padding: unset;
    appearance: none;
    font-weight: bold;
    cursor: pointer;
}

.btn > form > input[type="submit"]:focus {
    outline: none;
}

.paper {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    box-shadow: none;
    padding: 2em;
    margin: 1em 0;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: none;
}

.paper > .paper-head {
    min-height: 2rem;
    margin-bottom: 5px;
}

.paper > .paper-body {
    flex: 1 1;
}

.paper .statusbar {
    position: absolute;
    top: 2em;
    margin: auto;
    display: flex;
    justify-content: center;
    left: 2em;
    right: 1em;
}

.paper .statusbar > .message {
    line-height: 2;
    padding: 0.1em 2em;
    background-color: #ffd70078;
    color: #555;
}

.paper .statusbar > .message.error {
    display: flex;
}

.paper .statusbar > .message.error button {
    margin-right: -2em;
    background-color: transparent;
    border: navajowhite;
    width: 2.5em;
    font-size: 1.2em;
    color: #6f6fb7;
    cursor: pointer;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 1rem;
}

.table th,
.table td {
    border-bottom: 1px solid #eee;
    padding: 0.7em 0.5em;
    min-width: 5em;
    text-align: left;
}

.table thead > tr:first-child {
    background: #fafafd;
    color: #222;
}

.table tr:hover {
    background: #f5f5f5;
}

.table tr:nth-child(odd),
.table tr:nth-child(even) {
    background: none;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #222;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    background: #fafafd;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: border 0.2s;
    box-shadow: none;
    letter-spacing: 0.03em;
}

.form-control:focus {
    border-color: hsl(306, 40%, 60%);
    outline: none;
    box-shadow: none;
}

.form-control:disabled {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

.form-control::placeholder {
    color: #bbb;
    opacity: 1;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: hsl(306, 40%, 40%);
    letter-spacing: 0.05em;
}

.form-inline {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 1rem;
}

.form-inline .form-group {
    display: flex;
    flex: 0 0 auto;
    flex-flow: row wrap;
    align-items: center;
    margin-bottom: 0;
}

.form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.form-inline .form-label {
    margin-bottom: 0;
    margin-right: 0.5rem;
}

/* 表单验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    letter-spacing: 0.05em;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* 表单布局 */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
    gap: 1rem;
}

.form-row > .form-group {
    padding-right: 5px;
    padding-left: 5px;
    flex: 1 1 auto;
}

/* 表单按钮组 */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.form-buttons .btn {
    flex: 0 0 auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-inline .form-group {
        margin-right: 0;
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons .btn {
        width: 100%;
    }
}
